function show() {
	/*=====get left data=====*/
	getLeftNews();
	getLeftNotice();
	/*=====get teacher data====*/
	getTeacherListInfo(1);
}


function getTeacherListInfo(pageNum){
	$.ajax({
		url: "/edu/teacher/getTeacherList",
		type: "POST",
		data: {
			rows: 6,
			page:pageNum
		},
		dataType: "json",
		async: false,
		success: function(data) {
			if (data.status) {
				$(".teacherItemDiv-item-body").empty();
				$.each(data.rows, function(i, item) {
					var teacherStr = "";
					teacherStr += "<a href='/edu/teacher/teacherInfo.html?teacher_id=" + item.teacher_id + "'>";
					teacherStr += "<div class='teacherItem'>";
					teacherStr += "<img class='teacherItemImg' src='" + item.photo_path + "' />";
					teacherStr += "<div class='teacherItemInfo'>";
					teacherStr += "<div class='teacherItemInfo-title'>" + item.name + "</div>";
					teacherStr += "<div class='teacherItemInfo-body'>" + item.edu_bg + "</div>";
					teacherStr += "<div class='teacherItemInfo-body'><a href='/edu/teacher/teacherInfo.html?teacher_id=" + item.teacher_id + "'>查看辅导课程</a>";
					teacherStr += "</div>";
					teacherStr += "<div class='teacherItemInfo-body'>" + item.remark1 + "</div>";
					teacherStr += "</div>";
					teacherStr += "</div>";
					teacherStr += "</a>";
					$(".teacherItemDiv-item-body").append(teacherStr);
				});
				var pageStr = "";
				for (var i = 1; i <= data.max_page; i++) {
					if (i == data.page) {
						pageStr += " <li><a href='javascript:getTeacherListInfo("  + i + ")'><span class='page-span-now'>" + i + "</span></a></li> ";
					} else {
						pageStr += " <li><a href='javascript:getTeacherListInfo(" + i + ")'><span class='page-span'>" + i + "</span></a></li> ";
					}
				}
				$(".page > ul").empty();
				$(".page > ul").append(pageStr);

			} else {

			}
		}
	});
}


//===get teacher list 
function getTeacherList(size) {
	/*====get teacher info====*/
	$.ajax({
		url: "/edu/teacher/getTeacherList",
		type: "POST",
		data: {
			rows: size
		},
		dataType: "json",
		async: false,
		success: function(data) {
			if (data.status) {
				$.each(data.rows, function(i, item) {
					$("#t" + i).css("background", "url(" + item.photo_path + ") no-repeat");
					$("#t" + i).css("background-size", "100% 100%");
//					$("#t" + i).c
					$("#t" + i + " > span").html(item.name + "<br />" + item.edu_bg);
					$("#t" + i + " > a").attr("href", "/edu/teacher/teacherInfo.html?teacher_id=" + item.teacher_id);
				});
			} else {

			}
		}
	});
}